<template>
    <view>
        <web-view :src="url"></web-view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                url: '',
    			titleStr:','
            }
        },
        onLoad(e) {
             // 获取传递过来的链接
            this.url = JSON.parse(decodeURIComponent(e.url));
			console.log("H5访问地址：" + this.url);
    		if (e.titleStr != ''){
    			this.titleStr = e.titleStr
    			wx.setNavigationBarTitle({
    			  title: e.titleStr
    			})
    		}
        }
    }
</script>

<style>
</style>
